package com.ynny.entity;

import lombok.Data;
@Data
public class User {
    private String username;

    private Integer id;

    private String password;

    private String identity;


    private Integer sex;

    private String hobby;

    public Integer age;


    public User() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public User(String username, Integer id, String password, String identity, Integer sex, String hobby, Integer age) {
        this.username = username;
        this.id = id;
        this.password = password;
        this.identity = identity;
        this.sex = sex;
        this.hobby = hobby;
        this.age = age;
    }

}